Fractale Tree  0.5
Plot Tree Fractale
Public Member Functions | Private Attributes | List of all members
Stock_Prcent Class Reference

#include <stock_prcent.h>

Public Member Functions

 Stock_Prcent ()
 
void Set_Size (int size)
 
int Get_size ()
 
double Get_Prcent_By_Index (int index)
 
void Set_Prcent_By_Index (int index, double prcent)
 
double Get_Angle_By_Index (int index)
 

Private Attributes

int Size
 
double Tab_Prcent [10]
 
double Tab_Angle [10]
 

Detailed Description

Definition at line 10 of file stock_prcent.h.

Constructor & Destructor Documentation

◆ Stock_Prcent()

Stock_Prcent::Stock_Prcent ( )

Definition at line 3 of file stock_prcent.cpp.

4 {
5  ;
6 }

Member Function Documentation

◆ Get_Angle_By_Index()

double Stock_Prcent::Get_Angle_By_Index ( int  index)

Definition at line 35 of file stock_prcent.cpp.

References Size, and Tab_Angle.

Referenced by Draw_Tree::Sub_Draw().

36  {
37  if(index>=0 && index<Size)
38  {
39  return Tab_Angle[index];
40  }
41  return 0;
42  }
double Tab_Angle[10]
Definition: stock_prcent.h:26
Here is the caller graph for this function:

◆ Get_Prcent_By_Index()

double Stock_Prcent::Get_Prcent_By_Index ( int  index)

Definition at line 27 of file stock_prcent.cpp.

References Size, and Tab_Prcent.

Referenced by Draw_Tree::Draw_Graph().

28  {
29  if(index>=0 && index<Size)
30  {
31  return Tab_Prcent[index];
32  }
33  return 0;
34  }
double Tab_Prcent[10]
Definition: stock_prcent.h:25
Here is the caller graph for this function:

◆ Get_size()

int Stock_Prcent::Get_size ( )

Definition at line 22 of file stock_prcent.cpp.

References Size.

Referenced by Draw_Tree::Draw_Graph(), and Draw_Tree::Sub_Draw().

23  {
24  return Size;
25  }
Here is the caller graph for this function:

◆ Set_Prcent_By_Index()

void Stock_Prcent::Set_Prcent_By_Index ( int  index,
double  prcent 
)

Definition at line 13 of file stock_prcent.cpp.

References Size, Tab_Angle, and Tab_Prcent.

Referenced by QWidget_trees::Update_Value().

14  {
15  if(index>=0 && index<Size)
16  {
17  Tab_Prcent[index]=prcent;
18  Tab_Angle[index]=prcent/100*180;
19  }
20  }
double Tab_Angle[10]
Definition: stock_prcent.h:26
double Tab_Prcent[10]
Definition: stock_prcent.h:25
Here is the caller graph for this function:

◆ Set_Size()

void Stock_Prcent::Set_Size ( int  size)

Definition at line 8 of file stock_prcent.cpp.

References Size.

Referenced by QWidget_trees::QWidget_trees().

9  {
10  Size=size;
11  }
Here is the caller graph for this function:

Member Data Documentation

◆ Size

int Stock_Prcent::Size
private

◆ Tab_Angle

double Stock_Prcent::Tab_Angle[10]
private

Definition at line 26 of file stock_prcent.h.

Referenced by Get_Angle_By_Index(), and Set_Prcent_By_Index().

◆ Tab_Prcent

double Stock_Prcent::Tab_Prcent[10]
private

Definition at line 25 of file stock_prcent.h.

Referenced by Get_Prcent_By_Index(), and Set_Prcent_By_Index().


The documentation for this class was generated from the following files: